import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { join } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': join(__dirname, 'src')
    }
  },
  base: './',
  optimizeDeps: {
    entries: ['src/main.web.ts']
  },
  root: '.',
  publicDir: 'public',
  server: {
    port: 3000
  },
  build: {
    outDir: 'dist',
    emptyOutDir: true,
    rollupOptions: {
      input: {
        main: join(__dirname, 'index.web.html')
      }
    }
  }
}) 